package cn.lds.j368.dsbank.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 贷款申请表
 * </p>
 *
 * @author Christopher
 * @since 2023-04-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_loan_apply")
public class LoanApply implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
      @TableId(value = "LOAN_APPLY_ID", type = IdType.AUTO)
    private Long loanApplyId;

    /**
     * 客户主键id
     */
    private Long customerId;

    /**
     * 贷款产品id
     */
    private Integer loanTypeId;

    /**
     * 抵押物品类型id
     */
    private Integer collateralType;

    /**
     * 抵押物品凭证图片
     * COLLATREAL_CERTIFICATE_IMG
     */
    private String collatrealCertificateImg;

    /**
     * 抵押物品预估价值
     */
    private BigDecimal collateralValue;

    /**
     * 贷款金额
     */
    private BigDecimal loanAmount;

    /**
     * 贷款时长
     */
    private Integer loanMonth;

    /**
     * 数据创建人id
     */
    private Integer createEmpId;

    /**
     * 还款方式，有等额本息和等额本金两种
     */
    private Integer repaymentModeId;

    /**
     * 审批时间
     */
    private Date approvalTime;

    /**
     * 审批结果
     */
    private Integer appStatus;

    /**
     * 审批人id
     */
    private Integer approvalEmpId;

    /**
     * 申请时间
     */
    private Date applyTime;

    /**
     * 修改人编号
     */
    private Integer modifyEmpId;

    /**
     * 修改时间
     */
    private Date modifyTime;

    /**
     * 逻辑删除识别码 0为正常 1为已删除
     */
    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private Customer customer;

    @TableField(exist = false)
    private LoanProduce loanProduce;

    @TableField(exist = false)
    private Employee createEmp;
    @TableField(exist = false)
    private Employee modifyEmp;

    @TableField(exist = false)
    private Employee approvalEmp;

    @TableField(exist = false)
    private DataDictionary repaymentMode;

    @TableField(exist = false)
    private DataDictionary collateral;





}
